package com.lt.experiment06.mission02;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment06.mission02
 * @ClassName UiPerson
 * @Description to do
 * @date 2021/11/28 18:13
 */
public class UiPerson implements Observer,Display{
    int up = 0;
    @Override
    public void update(int hp, int sp, int up) {
        this.up = up;
        if (this.up == 1) {
            display();
        }
    }

    @Override
    public void display() {
        System.out.println("有UI设计人员类别的合适的岗位");
    }
}
